home *** CD-ROM | disk | FTP | other *** search
/ Aminet 49 / Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso / Aminet / util / libs / ttrender.lha / ttrender-2.0 / Developer / source / makefile < prev    next >
Encoding:
Makefile  |  2002-04-06  |  2.5 KB  |  94 lines

  1. VPATH = base/ sfnt/ smooth/ truetype/ raster/
  2. FT2_INCLUDE = ft2_include/
  3. CF = -c -O2 -msmall-code -m68020 -I$(FT2_INCLUDE)
  4. DISTRDIR = RAM:Prometheus
  5. AUTODOC = /c/autodoc
  6. FD2INLINE = /bin/fd2inline
  7. FD2PRAGMA = /c/fd2pragma
  8.  
  9. all: library doc sfd clib gccinline proto libraries pragma pragmas lvo vbccinline examples
  10.  
  11. lib: header.o lib.o ftbase.o sfnt.o smooth.o raster.o truetype.o ftinit.o ftsystem.o
  12.     gcc -s -nostartfiles -noixemul -msmall-code -o ttrender.library header.o lib.o ftbase.o sfnt.o smooth.o raster.o truetype.o ftinit.o ftsystem.o
  13.  
  14. library: header.o lib.o ftbase.o sfnt.o smooth.o raster.o truetype.o ftinit.o ftsystem.o
  15.     gcc -s -nostartfiles -noixemul -msmall-code -o ttrender.library header.o lib.o ftbase.o sfnt.o smooth.o raster.o truetype.o ftinit.o ftsystem.o
  16.     copy ttrender.library $(DISTRDIR)/Libs
  17.  
  18. lib.o: lib.c lib.h
  19.     gcc $(CF) $<
  20.  
  21. header.o: header.s
  22.     gcc $(CF) $<
  23.  
  24. sfnt.o: sfnt.c
  25.     gcc $(CF) $<
  26.  
  27. smooth.o: smooth.c
  28.     gcc $(CF) $<
  29.  
  30. raster.o: raster.c
  31.     gcc $(CF) $<
  32.  
  33. truetype.o: truetype.c
  34.     gcc $(CF) $<
  35.  
  36. ftbase.o: ftbase.c
  37.     gcc $(CF) $<
  38.  
  39. ftinit.o: ftinit.c
  40.     gcc $(CF) $<
  41.  
  42. ftsystem.o: ftsystem.c
  43.     gcc $(CF) $<
  44.  
  45.              
  46.  
  47. doc: lib.c
  48.     $(AUTODOC) -C -c -I $< >$(DISTRDIR)/Developer/autodocs/ttrender.doc
  49.  
  50. sfd: ttrender_lib.sfd
  51.     copy $< $(DISTRDIR)/Developer/sfd/ttrender_lib.sfd
  52.  
  53. clib: ttrender_lib.sfd
  54.     $(FD2PRAGMA) $< TO $(DISTRDIR)/Developer/include/clib SPECIAL 111
  55.  
  56. gccinline: ttrender_lib.sfd
  57.     $(FD2PRAGMA) $< TO $(DISTRDIR)/Developer/include/inline SPECIAL 40
  58.  
  59. proto: ttrender_lib.sfd
  60.     $(FD2PRAGMA) $< TO $(DISTRDIR)/Developer/include/proto SPECIAL 35
  61.  
  62. libraries: ttrender.h
  63.     copy $< $(DISTRDIR)/Developer/include/libraries/ttrender.h
  64.  
  65. pragma: ttrender_lib.sfd
  66.     $(FD2PRAGMA) $< TO $(DISTRDIR)/Developer/include/pragma SPECIAL 6
  67.  
  68. pragmas: ttrender_lib.sfd
  69.     $(FD2PRAGMA) $< TO $(DISTRDIR)/Developer/include/pragmas SPECIAL 6
  70.     rename $(DISTRDIR)/Developer/include/pragmas/ttrender_lib.h $(DISTRDIR)/Developer/include/pragmas/ttrender_pragmas.h
  71.  
  72. lvo: ttrender_lib.sfd
  73.     $(FD2PRAGMA) $< TO $(DISTRDIR)/Developer/include/lvo SPECIAL 23
  74.  
  75. vbccinline: ttrender_lib.sfd
  76.     $(FD2PRAGMA) $< TO $(DISTRDIR)/Developer/include/inline SPECIAL 70
  77.  
  78. examples: test
  79.     copy $< $(DISTRDIR)/examples/test
  80.     copy test.c $(DISTRDIR)/examples/test.c
  81.     copy startup.c $(DISTRDIR)/examples/startup.c
  82.     copy makefile2 $(DISTRDIR)/examples/makefile
  83.  
  84. test: test.o startup.o
  85.     gcc -o test -nostartfiles -noixemul -msmall-code -fbaserel startup.o test.o
  86.  
  87. test.o: test.c
  88.     gcc $(CF) $<
  89.  
  90. startup.o: startup.c
  91.     gcc $(CF) -fwritable-strings $<
  92.  
  93.  
  94.